module.exports = {
  userFormateError: {
    code: "10001",
    message: "用户名或密码为空",
    result: "",
  },
  userAlreadyExited: {
    code: "10002",
    message: "用户已经存在",
    result: "",
  },
  userRegisterError: {
    code: "10003",
    message: "用户注册错误",
    result: "",
  },
  userDoesNotExist: {
    code: "10004",
    message: "用户名不存在",
    result: "",
  },
  userLoginError: {
    code: "10005",
    message: "用户登录失败",
    result: "",
  },
  invalidPassword: {
    code: "10006",
    message: "密码不匹配",
    result: "",
  },
  userAllListFromatterError: {
    code: "10007",
    message: "获取用户列表失败",
    result: "",
  },
  userUpdateError: {
    code: "10008",
    message: "修改用户信息失败",
    result: "",
  },
  userDeleteError: {
    code: "10009",
    message: "删除用户信息失败",
    result: "",
  },
  tokenExpiredError: {
    code: "10101",
    message: "token已过期",
    result: "",
  },
  invalidToken: {
    code: "10102",
    message: "无效的token",
    result: "",
  },
  tokenNotActive: {
    code: "10103",
    message: "token未生效",
    result: "",
  },
  failUpdatePasswordServer: {
    code: "10104",
    message: "服务器错误 修改密码失败",
    result: "",
  },
  failUpdatePassword: {
    code: "10105",
    message: "修改密码失败",
    result: "",
  },
  successUpdatePasswordServer: {
    code: "10106",
    message: "修改密码成功",
    result: "",
  },
  hasNotAdminPermission: {
    code: "10107",
    message: "没有管理员权限",
    result: "",
  },
  fileUploadError: {
    code: "10201",
    message: "商品图片上传失败",
    result: "",
  },
  unSupportedMimeType: {
    code: "10202",
    message: "不支持这种格式的图片",
    result: "",
  },
  fileIsNotEmpty: {
    code: "10212",
    message: "上传的内容不能为空",
    result: "",
  },
  goodsFormatError: {
    code: "10203",
    message: "商品参数格式错误",
    result: "",
  },
  publishGoodError: {
    code: "10204",
    message: "发布商品错误",
    result: "",
  },
  updataGoodsError: {
    code: "10205",
    message: "修改商品错误",
    result: "",
  },
  invalidGoodsId: {
    code: "10206",
    message: "无效的商品id",
    result: "",
  },
  deleteGoodsError: {
    code: "10207",
    message: "下架商品失败",
    result: "",
  },
  restoreGoodsError: {
    code: "10207",
    message: "上架商品失败",
    result: "",
  },
  GetGoodsAllError: {
    code: "10208",
    message: "商品获取失败",
    result: "",
  },
  goodsIdIsNotNullError: {
    code: "10208",
    message: "商品获取失败",
    result: "",
  },
  isHasStockNumberError: {
    code: "10208",
    message: "获取商品库存数失败",
    result: "",
  },
  carts_numDetgoods_num: {
    code: "10208",
    message: "库存不足",
    result: "",
  },
  cartFormatError: {
    code: "10301",
    message: "购物车参数格式错误",
    result: "",
  },
  deleteCartError: {
    code: "10302",
    message: "删除购物车失败",
    result: "",
  },
  addrFormatterError: {
    code: "10401",
    message: "地址格式错误",
    result: "",
  },
  orderFormatterError: {
    code: "10401",
    message: "订单格式错误",
    result: "",
  },
  // 菜单错误码
  menuCreateFormatterError: {
    code: "10601",
    message: "创建菜单错误",
    result: "",
  },
  menuGetFormatterError: {
    code: "10602",
    message: "获取菜单列表错误",
    result: "",
  },
  menuUpdateFormatterError: {
    code: "10603",
    message: "修改菜单错误",
    result: "",
  },
  menuDeleteFormatterError: {
    code: "10604",
    message: "删除菜单错误",
    result: "",
  },
  menuDeleteisParentFormatterError: {
    code: "10605",
    message: "无法删除有子项的菜单",
    result: "",
  },

  // 角色错误码
  roleCreateFormatterError: {
    code: "10701",
    message: "创建角色错误",
    result: "",
  },
  roleGetFormatterError: {
    code: "10702",
    message: "获取角色错误",
    result: "",
  },
  roleUpdateFormatterError: {
    code: "10703",
    message: "修改角色信息错误",
    result: "",
  },
  roleDeleteFormatterError: {
    code: "10704",
    message: "删除角色信息错误",
    result: "",
  },
  // 角色-用户 错误码
  roleUserCreateFormatterError: {
    code: "10801",
    message: "角色用户绑定错误",
    result: "",
  },

  // 角色-权限 错误码
  rolePremissionCreateFormatterError: {
    code: "10901",
    message: "角色权限绑定错误",
    result: "",
  },
  rolePremissionGetFormatterError: {
    code: "10902",
    message: "角色权限查询错误",
    result: "",
  },
  rolePremissionGetFormatterEmpty: {
    code: "10903",
    message: "未查询到权限",
    result: "",
  },

  // 文章 错误码
  articleCreateFormatterError: {
    code: "20001",
    message: "创建文章错误",
    result: "",
  },
  articleGetFormatterError: {
    code: "20002",
    message: "获取文章错误",
    result: "",
  },
  articleUpdateFormatterError: {
    code: "20003",
    message: "更新文章错误",
    result: "",
  },
  articleDeleteFormatterError: {
    code: "20004",
    message: "删除文章错误",
    result: "",
  },
};
